<?php
/**
 * Core_Model_electmodel
 *
 * @author Adrian Stolarski
 */
class Core_Model_Selectmodel implements Core_Model_Ormable {
    
    public $generate_query_handler;
    public $data_opreation_handler;
    
    public function main(array $variables = null, $table = null, $action = null, $where = '1') {
        $query = $this->generate_query($variables, $table, $action, $where);
        
    }
    
    private function generate_query(array $variables = null, $table = null, $action = null, $where = '1'){
        $this->generate_query_handler = new Core_Model_Selectdata;
        return $this->$generate_query_handler->main($variables, $table, $action, $where);
    }
    
    private function data_operation($query){
        $this->data_opreation_handler = new Core_Data_Selectataoperation;
        return $this->data_opreation_handler->action($query);
    }

}
